package com.wxy.demo.dao;

import com.wxy.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *
 * </p>
 *
 * @author e-Xiaoyuan.Wang
 * @since 2022/4/12 9:41
 */
@Repository
public interface UserDao extends JpaRepository<User, Long> {
    User findByRequestKey(String key);

    User findByName(String name);
}
